package main

import (
	"fmt"
	"github.com/gorilla/websocket"
	"net/http"
)

func aGoLangStd(w http.ResponseWriter, r *http.Request) {
	var conn, _ = upgrader.Upgrade(w, r, nil)
	go func(conn *websocket.Conn) {
		for {
			mType, msg, _ := conn.ReadMessage()
			conn.WriteMessage(mType, msg)
		}
	}(conn)
	fmt.Fprintln(w, "张国圣你真是个天菜")
}
